#include "widget.h"
#include<QDebug>
#include<QIcon>

widget::widget(QWidget *parent) : QWidget(parent)
{
//    pix1.load(str);
//    this->setFixedSize(pix1.width(),pix1.height());
    this->setWindowIcon(QIcon(":/kgs/timg.jpg"));
    this->setWindowTitle(" ");
}
void widget::paintEvent(QPaintEvent *)
{

    QPainter painter(this);
    pix1.load(str);
    this->setFixedSize(pix1.width(),pix1.height());
    painter.drawPixmap(0,0,this->width(),this->height(),pix1);
}
